<!DOCTYPE html>
<html lang="en">
<head>
    <title>无线路由管理平台</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />

    <link rel="stylesheet" href="css/unicorn.main.css" />
    <link rel="stylesheet" href="css/unicorn.grey.css" class="skin-color" />
    <link href="css/font-awesome.min.css" rel="stylesheet">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>

<%include inc.html%>



<div id="content">
    <div id="breadcrumb">
        <a href="index.html" title="返回控制台" class="tip-bottom"><i class="icon-home"></i> 无线路由管理平台</a>
        <a href="#" class="current">通知/告警管理</a>
    </div>

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="alert alert-info">
                <i class=" icon-cog"></i>
                可以给某个代理商/商户发送通知告警，也可以给所有用户发布通知告警。系统后台也会自动将告警信息发送至代理商/商户。
                <a href="#" data-dismiss="alert" class="close">×</a>
            </div>

        </div>
        <div class="row-fluid">
            <div id="statusinfo" style="margin: 0 auto;" class="alert alert-block alert-<%if(typeof(retdata.success)!="undefined" && retdata.success==false){%>error<%}else{%>info<%}%>" id="info">
            <i class=" icon-cog"></i>
            <strong >
                <%=retdata.info %>
            </strong>
        </div>

    </div>



    <div class="row-fluid">
        <BR>
        <a class="btn btn-primary" href="notifyinfo.html?oper=add">
            <i class="fa fa-plus-circle fa-lg"></i> 推送通知/告警</a>

        <!--<a class="btn btn-danger" href="">
            <i class="fa fa-cog fa-lg"></i> 查看权限分级关系</a>

        <div id="canvas"></div>-->

        <div class="widget-box">
        <div class="widget-title">
            <h5>通知/告警</h5>
        </div>

        <div class="widget-content nopadding">
            <table class="table table-bordered data-table">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>发送人员/模块</th>
                    <th>发送时间</th>
                    <th>消息类型</th>
                    <th>级别</th>
                    <th>内容</th>
                    <th>接收人员</th>
                    <th>失效日期</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <form   method="post"  />
                <%if(typeof(notifys)!=="undefined" && notifys!==null) {%>
                    <%notifys.forEach(function(post, index){%>
                    <tr class="gradeZ" id="tr_<%=post.id%>" >
                        <td style="text-align: center"><%=index+1%></td>
                        <td style="text-align: center"><%=post.nickname%></td>
                        <td style="text-align: center"><%=post.createdate%></td>
                        <td style="text-align: center"><%=post.notifytype%></td>
                        <td style="text-align: center"><%=post.level%></td>
                        <td style="text-align: center"><%=post.msgcontent%></td>

                        <td style="text-align: center"><%if(post.touserid==-1){%>全体人员<%}else{%><%=post.tonickname%><%}%></td>
                        <td style="text-align: center"><%=post.expiredate%></td>
                        <td style="text-align: center">
                            <a class="btn btn-danger" href="javascript:;" id="deloper"  onclick="deleteoper('<%=post.id%>')">
                                <i class="fa fa-trash-o fa-lg"></i> </a>
                         </td>
                    </tr>
                    <%})%>
                <%}%>
            </form>
            </tbody>
        </table>
        </div>
    </div>

    </div>
    <BR>
    <div class="row-fluid">
        <div id="footer" class="span12">
            2014 &copy; 无线广告路由云管理平台
        </div>
    </div>





</div>


<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="js/unicorn.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script type='text/javascript' src='js/bootbox.min.js' charset='utf-8'></script>




<script src="js/unicorn.notifyadmin.js"></script>

</body>
</html>
